package com.nlelpct.manage.constant;

/**
 * @author :小马
 * @date : 2023-07-12
 * security常量
 */
public class SecurityConstant {
    /**
     * 前端记录token字符串的key
     */
    public static final String SECURITY_TOKEN = "Authorization";

    /**
     * 用户登录的用户名字段
     */
    public static final String USERNAME = "username";

    /**
     * 用户登录的密码字段
     */
    public static final String PASSWORD = "password";

    /**
     * 用户退出的URL
     */
    public static final String LOGOUT_URL = "/user/logout";

    /**
     * 用户登陆的URL
     */
    public static final String LOGIN_URL = "/user/login";

    /**
     * 用户登陆的dev-URL
     */
    public static final String DEV_LOGIN_URL = "/ucm/user/login";

    /**
     * 修改密码的URL
     */
    public static final String CHANGE_PASSWORD_URL = "/user/noLogin/changePassword";

    /**
     * druid监控
     */
    public static final String DRUID_URL = "/druid";

    /**
     * 用户IP地址信息登记
     */
    public static final String USER_TERMINAL = "/user/terminal";

    /**
     * 无需权限校验的url集合
     */
    public static final String[] NO_AUTHORIZE_URL_LIST = new String[]{LOGOUT_URL, DEV_LOGIN_URL, LOGIN_URL, CHANGE_PASSWORD_URL, USER_TERMINAL};

    /**
     * token有效期,单位分钟
     */
    public static final Long TOKEN_TIME = 60 * 12L;


}
